package com.ssy.lingxi.platform.template.service.controller.mobile;

import com.ssy.lingxi.common.controller.BaseController;
import com.ssy.lingxi.common.response.Wrapper;
import com.ssy.lingxi.platform.template.service.model.dto.mobile.MemberSelfMainMobileDTO;
import com.ssy.lingxi.platform.template.service.model.vo.mobile.MemberSelfMainMobileVO;
import com.ssy.lingxi.platform.template.service.service.mobile.MemberSelfMobileService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

/**
 * @menu mobile - 会员自营门户
 * @author fhj
 * @version 2.0.0
 * @date 2021/10/19
 */
@Api(tags = "mobile - 会员自营门户")
@RestController
@RequestMapping("/template/mobile/memberSelfMobile")
public class MemberSelfMobileController extends BaseController {

    @Resource
    private MemberSelfMobileService memberSelfMobileService;

    @ApiOperation(value = "会员自营主页")
    @GetMapping("/memberSelfMain")
    public Wrapper<MemberSelfMainMobileVO> memberSelfMain(MemberSelfMainMobileDTO dto) {
        return memberSelfMobileService.memberSelfMain(dto);
    }
}
